﻿using Coldairarrow.Entity.Base_Manage;
using Coldairarrow.Entity.Dev;
using System.Collections.Generic;
using System.Linq;

namespace Coldairarrow.Util
{
    [Map(typeof(Dev_CategoryData))]
    public class Dev_CategoryDataDTO : Dev_CategoryData
    {
        public string CategoryName { get => CategoryList.Where(o=>o.Id==CategoryId).FirstOrDefault().CategoryName; }
        List<Dev_Category> CategoryList { get; set; }
    }
}
